package com.vcredit.creditcat.service;

import com.vcredit.creditcat.model.CallLog;
import com.vcredit.creditcat.persistence.base.CallLogMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 
 **/
@Service
public class CallLogService {
	@Autowired
	private CallLogMapper mapper;

	public void insert(CallLog obj) {
		mapper.insert(obj);
	}

	public void update(CallLog obj) {
		mapper.update(obj);
	}

	public List<CallLog> find(CallLog obj) {
		return mapper.find(obj);
	}

	public List<CallLog> findByCustId(Long custId) {
		return mapper.findByCustId(custId);
	}

	public CallLog findById(Long id) {
		return mapper.findById(id);
	}
}